package base.Day03;

import java.util.Scanner;

public class CommandBySwitch
{
    public static void main(String[] args)
    {
        Scanner scanner = new Scanner(System.in);
        while (true)
        {
            System.out.println("please --------------------如果想要退出 ，请输入999");
            System.out.println("");
            int commend = scanner.nextInt();
            if(commend == 999)
            {
                System.out.println("退出系统");
                break;
            }
            switch (commend)
            {
                case 1:
                    System.out.println("存款业务");
                    break;
                case 2:
                    System.out.println("取款业务");
                    break;
                case 3:
                    System.out.println("查询余额业务");
                    break;
                default:
                    System.out.println("输入错误请重新输入");
                    break;
            }
        }
    }
}
